#ifndef _LQOLED_H
#define _LQOLED_H
//#include"stc.h"
//#include "intrins.h"
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
//#include "msp.h"

 	#define byte  unsigned char
	#define word  unsigned int
	#define dword unsigned long  

#define LCD_SCL_PORT    GPIO_PORT_P9
#define LCD_SCL_PIN     GPIO_PIN5
#define LCD_SDA_PORT    GPIO_PORT_P9
#define LCD_SDA_PIN     GPIO_PIN7
#define LCD_RST_PORT    GPIO_PORT_P9
#define LCD_RST_PIN     GPIO_PIN3
#define LCD_DC_PORT     GPIO_PORT_P9
#define LCD_DC_PIN      GPIO_PIN6

#define LCD_SCL(x)     ((x)? GPIO_setOutputHighOnPin(LCD_SCL_PORT,LCD_SCL_PIN): GPIO_setOutputLowOnPin(LCD_SCL_PORT,LCD_SCL_PIN))
#define LCD_SDA(x)     ((x)? GPIO_setOutputHighOnPin(LCD_SDA_PORT,LCD_SDA_PIN): GPIO_setOutputLowOnPin(LCD_SDA_PORT,LCD_SDA_PIN))
#define LCD_RST(x)     ((x)? GPIO_setOutputHighOnPin(LCD_RST_PORT,LCD_RST_PIN): GPIO_setOutputLowOnPin(LCD_RST_PORT,LCD_RST_PIN))
#define LCD_DC(x)      ((x)? GPIO_setOutputHighOnPin(LCD_DC_PORT,LCD_DC_PIN): GPIO_setOutputLowOnPin(LCD_DC_PORT,LCD_DC_PIN))
 void LCD_Init(void);
 void LCD_CLS(void);
 void LCD_P6x8Str(byte x,byte y,byte ch[]);
 void LCD_P8x16Str(byte x,byte y,byte ch[]);
 void LCD_P14x16Ch(byte x,byte y,byte N);  	  
 void LCD_Fill(byte dat);

#endif

